<template>
  <div class="footBox">
    <div class="footBox_center">
      <div class="about">
        <div>
          <div class="top">ABOUT</div>
          <div class="center cursor" @click="$router.push('/aboutus')">
            About us
          </div>
          <div class="center cursor" @click="$router.push('/contactdreame')">
            Contact us
          </div>
        </div>
        <div>
          <div class="top">SUPPORT</div>
          <div class="center cursor" @click="$router.push('/qa')">Help</div>
          <div class="center cursor">Feedback</div>
        </div>
        <div>
          <div class="top">LEGAL</div>
          <div class="center cursor" @click="$router.push('/ofuse')">
            terms of use
          </div>
          <div class="center cursor" @click="$router.push('/policy')">
            Privacy policy
          </div>
        </div>
        <div>
          <div class="top">STAY CONNECTED</div>
          <div class="center cursor">Facebook</div>
          <div class="center cursor">lnstagram</div>
        </div>
      </div>
      <div class="Dreame">{{configsArr.copyright}}</div>
    </div>
  </div>
</template>

<script>
import { ConfigsApi } from "../requery/api";
export default {
  data() {
    return {
      configsArr: [], //底部数据
    };
  },
  created() {
    ConfigsApi().then((res) => {
      console.log(res);
      if (res.code == 200) {
        this.configsArr = res.data;
         document.title = res.data.name
      }
    });
  },
};
</script>
 
<style lang = "less" scoped>
.footBox {
  width: 100vw;
  min-width: 1160px;
  height: 260px;
  background-color: #fff;
  background: linear-gradient(180deg, #3c3734 0%, #070707 100%);
  .footBox_center {
    width: 1160px;
    height: 260px;
    margin: 0 auto;
    padding-top: 30px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 500;
    color: #999999;
    .about {
      display: flex;
      justify-content: space-around;
      .top {
        margin-bottom: 37px;
      }
      .center {
        margin-bottom: 27px;
        font-size: 13px;
        color: #fdfdfd;
      }
    }
    .Dreame {
      width: 1160px;
      text-align: center;
      margin-top: 46px;
      font-size: 13px;
    }
  }
}
</style>